package com.claimSettlement.mapper;

import com.claimSettlement.pojo.SysJurisdiction;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/*
 *菜单Mapper层接口
 *宁杰
 */
@Repository
public interface MenuMapper {
    /**
     *
     * @param uid 用户id
     * @return 该用户的所有菜单
     */
    List<SysJurisdiction> getMenuAll(int uid);

    /**
     *
     * @param uid 用户id
     * @return 该用户的所拥有的按钮权限
     */
    List<String> getMenuButton(@Param("uid") int uid,@Param("jpid") int jpid);

}
